package com.ygqh.baby.service;

import java.util.Date;
import java.util.List;

import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.ao.ResultSet;
import com.ygqh.baby.po.YgAlipayRefundRecord;
import com.ygqh.baby.service.alipay.model.SuccessCallBack;

public interface YgAlipayRefundRecordService {

	List<YgAlipayRefundRecord> find();

	int findCount();

	YgAlipayRefundRecord findById(Long id);

	int deleteSoft(Long[] ids);

	int deleteSoft(Long id);

	int save(YgAlipayRefundRecord ygAlipayRefundRecord);

	int update(YgAlipayRefundRecord ygAlipayRefundRecord);

	int saveOrUpdate(YgAlipayRefundRecord ygAlipayRefundRecord);

	ResultSet<YgAlipayRefundRecord> search(QueryInfo queryInfo, String q);

	YgAlipayRefundRecord findByBatchNo(String batchNo);

	int updateSuccess(String batchNo, Date successTime, String resultDetails);

	void refundSuccess(String batchNo, String resultDetails, SuccessCallBack successCallBack);
}
